<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />

<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>

<style>
table tr[class=fields] th {
	color: #A65BC1;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
}

table tr th {
	color: #999;
	font-size: 14px;
	font-weight: bold;
	text-align: right;
	width: 15%;
}
</style>
<script>
var contextPath='${contextPath}';
var addOffice = function(){
	window.location.href="${contextPath}/index/work_load.htm";
}
function starquery(){
	var start_date = $("#start_date").val();
	
	var param_str = "";
	if( !empty( start_date ) ) param_str += "&start_date=" + start_date;
	location.href = "?" + param_str;
}

</script>
</head>
<body>
	<div id="container">
		<div id="title"></div>
		<table class="form_table">
			<tr>
				<td>
					<label>查询年份：</label><input type="text" id="start_date" size="15" value="${date}" rel="DATE::Y"/><input type="button" value=" 查询 " onclick="starquery()">
					<label><b>新增任务量：</b></label> <input id="btnAdd" onclick="addOffice()" type="button" value=" 立即添加新的任务量 " />
				</td>
			</tr>
		</table>
		<table>
			<tr class="fields">
				<th width="15%">月份</th>
				<th width="15%">等级区域</th>
				<th width="15%">业绩目标量</th>
				<th width="15%">接待成交率目标量</th>
				<th width="15%">邀约到访目标量</th>
				<th width="15%">每月电话目标量</th>
				<th width="13%">操作</th>
			</tr>
			
			<#if list??>
				<#list list as list>
				<tr>
					<td class="stress" style="text-align: center;">${list.months}</td>
					<td style="text-align: center;"><#if list.grade =="1">一级区域<#elseif list.grade =="2">二级区域<#elseif list.grade =="3">三级区域</#if></td>
					<td style="text-align: center;">${list.total_money} 万</td>
					<td style="text-align: center;">${list.reception} %</td>
					<td style="text-align: center;">${list.reserve} 个</td>
					<td style="text-align: center;">${list.track} 个</td>
					<td align="center" style="text-align: center;"><a href="${contextPath}/index/work_load.htm?id=${list.id}">修改信息</a></td>
				</tr>
				</#list>
			<#else>
				<tr><td colspan="5">暂未添加中心地址。</td></tr>
			</#if>
		</table>
</body>
</html>